cmake_minimum_required(VERSION 3.5)

project(lab_6 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

set(EXECUTABLE_SOURCES
    src/main.cpp
    src/colorConsole.cpp
    src/twoTask.cpp
    src/threeTask.cpp
    src/fourTask.cpp
    src/fiveTask.cpp
    src/sixTask.cpp
    src/sevenTask.cpp
    src/eightTask.cpp
    src/tenTask.cpp
    include/colorConsole.h
    include/twoTask.h
    include/threeTask.h
    include/fourTask.h
    include/fiveTask.h
    include/sixTask.h
    include/sevenTask.h
    include/eightTask.h
    include/tenTask.h

)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_executable(lab_6 ${EXECUTABLE_SOURCES})

install(TARGETS lab_6
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})

target_link_libraries(lab_6 Threads::Threads)
